package com.ssn.pattern;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class FooInvocation implements InvocationHandler
{

	private Object obj;
	public FooInvocation(Object o){
		this.obj=o;
	}
	public FooInvocation(){
	}
	public void setObj(Object obj)
	{
		this.obj = obj;
	}
	public Object invoke(Object proxy, Method method, Object[] args)
			throws Throwable
	{
		return method.invoke(obj, args);
	}

}
